package com.norma.spring.framework.beans;

import lombok.Getter;
import lombok.Setter;

/**
 * @author zhangchaofeng
 * @date 2020/11/18
 * @description
 */
@Getter
@Setter
public class NormaBeanWrapper {

    private Object beanInstance;

    private Class<?> beanClass;

    public NormaBeanWrapper(Object beanInstance) {
        this.beanInstance = beanInstance;
    }

    public NormaBeanWrapper(Object beanInstance,Class beanClass) {
        this.beanInstance = beanInstance;
        this.beanClass = beanClass;
    }

    /**
     * Return the bean instance wrapped by this object.
     */
    public Object getWrappedInstance() {
        return beanInstance;
    }

    /**
     * Return the type of the wrapped bean instance.
     */
    public Class<?> getWrappedClass() {
        return beanClass;
    }

}
